<?php
declare(strict_types=1);

namespace App\Model\Dao;

use Swoft\Db\Eloquent\Model;
use Swoft\Db\Query\Builder;
use Swoft\Redis\Pool;

/**
 * 数据访问抽象接口
 * Interface IAbstract
 * @package App\Model\Dao
 */
interface IAbstract
{
    public function add(array $values): int ;

    public function addAll(array $data): bool ;

    public function save(): bool ;

    public function select(): array ;

    public function one(int $id): array ;
    
    public function getRedis():Pool;
}